﻿function showdiv(targetid, image, objN) {

    var target = document.getElementById(targetid);
    var clickimage = document.getElementById(image);
    var clicktext = document.getElementById(objN);

    if (target.style.display == "block") {
        target.style.display = "none";
        if (clickimage!=null )
            clickimage.src = "../../images/Expand.gif";
        if (clicktext != null)
            clicktext.innerText = "【显示全部】";
        
    }
    else {
        target.style.display = "block";
        if (clickimage != null)
            clickimage.src = "../../images/Collapse.gif";
        if (clicktext != null)
            clicktext.innerText = "【 隐 藏 】";
    }
}